﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyDoanVien.DataLayer;
using QuanLyDoanVien.Bussiness;

namespace QuanLyDoanVien.Controller
{
    class HoatDongCtrl
    {
        HoatDongData m_HoatDongData = new HoatDongData();
        public List<HoatDongInfo> layDSHoatDong()
        {
            return m_HoatDongData.layDSHoatDong();
        }

        public HoatDongInfo layHoatDong(string maHD)
        {
            return m_HoatDongData.layHoatDong(maHD);
        }
        public string getAutoID()
        {
            return m_HoatDongData.getAutoID(); 
        }

        public bool themHoatDong(HoatDongInfo hd)
        {
            return m_HoatDongData.LuuHoatDong(hd);
        }

        public bool capNhatHoatDong(HoatDongInfo hd)
        {
            return m_HoatDongData.SuaHoatDong(hd);
        }

        public bool xoaHoatDong(string maHD)
        {
            return m_HoatDongData.XoaHoatDong(maHD);
        }
    }
}
